<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/23
 * Time: 17:06
 * 添加销售业绩记录
 */
//获取参数
$osp_ooid              = $route->bodyParams['osp_ooid'];      //关联订单id
$osp_ouid              = $route->bodyParams['osp_ouid'];      //关联员工表
$osp_type              = $route->bodyParams['osp_type'];      //业绩类型 0-奖励 1-责任扣除
$osp_price             = $route->bodyParams['osp_price'];     //金额
$osp_osid             = $route->bodyParams['osp_osid'];    
$osp_osname             = $route->bodyParams['osp_osname'];    

//写入数组
$insertArr = [
    'osp_ooid'              => $osp_ooid,
    'osp_ouid'              => $osp_ouid,
    'osp_type'              => $osp_type,
    'osp_price'             => $osp_price,
    'osp_osid'              => $osp_osid,
    'osp_osname'             => $osp_osname,
    'osp_create_time'      => time()
];

//执行写入语句
$rsData = $db->mysqlDB->insert("oa_sell_performance",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );